#ifndef CSERVER_H
#define CSERVER_H

#include <boost/beast/http.hpp>
#include <boost/beast.hpp>
#include <boost/asio.hpp>
#include <memory>

class CServer:public std::enable_shared_from_this<CServer>{
public:
    CServer(boost::asio::io_context &_io_con,unsigned short port);
    void start_accept();
private:
    boost::asio::io_context & _io_context;  //好像没有拷贝构造，所以传引用
    boost::asio::ip::tcp::acceptor _acceptor;   //接收连接，里面有对应的_socket
   

};

#endif